﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<WorkWriter.Models.ChangePasswordModel>" %>

<asp:Content ContentPlaceHolderID="PageTitle" runat="server">更改密码</asp:Content>
<asp:Content ContentPlaceHolderID="ViewTitle" runat="server">更改密码</asp:Content>
<asp:Content ContentPlaceHolderID="StyleContent" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="ViewContent" runat="server">

    <div style="width: 80%; margin-left: auto; margin-right: auto; border-top: 1px solid #3f4954;">
        <br />
        <form role="form" action='/Account/ChangePassword' method="post">
            <%: Html.AntiForgeryToken() %>
            <div class="text-center">
                <h4>密码</h4>
            </div>
            <hr />
            <div class="form-group">
                <input class="form-control" type="password" placeholder="原密码" id="OldPassword" name="OldPassword" />
            </div>
            <div class="form-group">
                <input class="form-control" type="password" placeholder="新密码" id="NewPassword" name="NewPassword" conditional="return '{value}' != $('#OldPassword').val()" data-msg-conditional="新密码不能与原密码一致." />
            </div>
            <div class="form-group">
                <input class="form-control" type="password" placeholder="新密码，再次输入" id="ConfirmPassword" name="ConfirmPassword" conditional="return '{value}' == $('#NewPassword').val()" data-msg-conditional="两次新密码输入不一致." />
            </div>
            <div style="border-bottom: 1px solid #3f4954; height: 40px;">
                <div class="text-center">
                    <%: Html.ValidationSummary() %>
                </div>
            </div>
            <div style="height: 5px;"></div>
            <div class="text-right">
                <button type="submit" class="btn btn-success"><i class="icon-"></i>&nbsp;提交&nbsp;</button>
                &nbsp;<a class="btn btn-success" href='<%:Url.Action("Index","Home") %>'><i class="cus-icon-back"></i>取消</a>
            </div>
        </form>
    </div>
</asp:Content>
<asp:Content ContentPlaceHolderID="ViewFooter" runat="server"></asp:Content>
<asp:Content ContentPlaceHolderID="ScriptContent" runat="server"></asp:Content>
